//
//  AppDelegate.m
//  KingSelected
//
//  Created by 杨鹏 on 2023/10/27.
//

#import "AppDelegate.h"
#import "TabbarController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    self.window = [[UIWindow alloc] init];
    self.window.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];
    [self setRootController];
    if (@available(iOS 15.0, *)) {
        [UITableView appearance].sectionHeaderTopPadding = 0;
    }
    [self setKeymanager];
    return YES;
}

/// 设置基础controller
- (void)setRootController {
    [kUserAccount setRootController];
}

- (void)setKeymanager {
    IQKeyboardManager *m = [IQKeyboardManager sharedManager];
    m.enable = YES;
    m.shouldResignOnTouchOutside = YES;
    m.enableAutoToolbar = YES;
}

@end
